#include "Blocks/StarfishBlock.h"

namespace PocketSurvival
{
    int32_t StarfishBlock::getIndex()
    {
        return Index();
    }

    const std::string &StarfishBlock::getBlockName()
    {
        static std::string blockName = "StarfishBlock";
        return blockName;
    }

    const std::vector<BoundingBox> &StarfishBlock::getCustomCollisionBoxes(int32_t value)
    {
        int32_t data = Terrain::ExtractData(value);
        int32_t face = BottomSuckerBlock::GetFace(data);
        int32_t subvariant = BottomSuckerBlock::GetSubvariant(data);
        return BlockConstans::starfishCollisionBoxes[4 * face + subvariant];
    }
}